package org.xielei.designpatterns.behavioral.templatemethod;

/**
 * HookConcreteSubClass
 *
 * @author xielei
 * @date 2020/8/6
 */
public class HookConcreteSubClass extends AbstractHookTemplateMethod{

    @Override
    protected void hookMethod() {
        System.out.println("钩子方法被重写");
    }

    @Override
    protected Boolean hookJudgeMethod() {
        return false;
    }

    @Override
    protected void abstractStartMethod() {
        System.out.println("HookConcreteSubClass 抽象开始方法被重写");
    }

    @Override
    protected void abstractEndMethod() {
        System.out.println("HookConcreteSubClass 抽象结束方法被重写");
    }
}
